package io.github.i678.bukkitantipmc.events;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

/**
 * This is called when a player calls a filter, regardless of bypass or not.
 */
public class AntiPMCFiltered extends Event {

    private static final HandlerList handlers = new HandlerList();
    boolean bypass;
    Player player;
    boolean banned;
    String message;
    boolean severe;

    public AntiPMCFiltered(String m, Player p, boolean b, boolean s, boolean ban) {
        message = m;
        player = p;
        bypass = b;
        severe = s;
        banned = ban;
    }

    public HandlerList getHandlerList() {
        return handlers;
    }

    public HandlerList getHandlers() {
        return handlers;
    }

    public boolean wasBypassed() {
        return bypass;
    }

    public boolean isSevere() {
        return severe;
    }

    public Player getPlayer() {
        return player;
    }

    public String getMessage() {
        return message;
    }

    public void setBypassed(boolean bypass) {
        this.bypass = bypass;
    }

    public void setSevere(boolean severe) {
        this.severe = severe;
    }

    public boolean isBanned() {
        return banned;
    }

    public void setBanned(boolean ban) {
        banned = ban;
    }

}
